package priv.project.pojo;/**
 * @author： li
 * @date： 2023-02-14 16:15
 * @version 1.0
 */

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author： ljm
 * @date： 2023-02-14 16:15
 * @version 1.0
 */
@TableName("t_scenic_spot")
public class ScenicSpot {
    private int id;
    private int typeId;
    private int areaId;
    private String name;
    private String readme;
    private String businessStartDate;
    private String businessEndDate;
    private BigDecimal price;
    private String skipUrl;
    private String searchKeyword;
    private Date createDate;
    private String isRed;
    private String isIndex;
    private String headImg;
    private String cultural;
    private String lat;
    private String lng;
@TableField(exist = false)
    private Rate rate;
    public ScenicSpot() {
    }

    public ScenicSpot(int id, int typeId, int areaId, String name, String readme, String business_start_date, String business_end_date, BigDecimal price, String skipUrl, String searchKeyword, Date createDate, String isRed, String idIndex, String headImg,String cultural) {
        this.id = id;
        this.typeId = typeId;
        this.areaId = areaId;
        this.name = name;
        this.readme = readme;
        this.businessStartDate = business_start_date;
        this.businessEndDate = business_end_date;
        this.price = price;
        this.skipUrl = skipUrl;
        this.searchKeyword = searchKeyword;
        this.createDate = createDate;
        this.isRed = isRed;
        this.isIndex = idIndex;
        this.headImg = headImg;
        this.cultural=cultural;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public int getAreaId() {
        return areaId;
    }

    public void setAreaId(int areaId) {
        this.areaId = areaId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReadme() {
        return readme;
    }

    public void setReadme(String readme) {
        this.readme = readme;
    }

    public String getBusinessStartDate() {
        return businessStartDate;
    }

    public void setBusinessStartDate(String businessStartDate) {
        this.businessStartDate = businessStartDate;
    }

    public String getBusinessEndDate() {
        return businessEndDate;
    }

    public void setBusinessEndDate(String businessEndDate) {
        this.businessEndDate = businessEndDate;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getSkipUrl() {
        return skipUrl;
    }

    public void setSkipUrl(String skipUrl) {
        this.skipUrl = skipUrl;
    }

    public String getSearchKeyword() {
        return searchKeyword;
    }

    public void setSearchKeyword(String searchKeyword) {
        this.searchKeyword = searchKeyword;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getIsRed() {
        return isRed;
    }

    public void setIsRed(String isRed) {
        this.isRed = isRed;
    }

    public String getIdIndex() {
        return isIndex;
    }

    public void setIdIndex(String idIndex) {
        this.isIndex = idIndex;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getCultural() {
        return cultural;
    }

    public void setCultural(String cultural) {
        this.cultural = cultural;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    @TableField(exist = false)
ScenicType scenicType;

    public String getIsIndex() {
        return isIndex;
    }

    public void setIsIndex(String isIndex) {
        this.isIndex = isIndex;
    }

    public ScenicType getScenicType() {
        return scenicType;
    }

    public void setScenicType(ScenicType scenicType) {
        this.scenicType = scenicType;
    }

    @TableField(exist = false)
    Area area;

    public Area getArea() {
        return area;
    }

    public void setArea(Area area) {
        this.area = area;
    }

    public Rate getRate() {
        return rate;
    }

    public void setRate(Rate rate) {
        this.rate = rate;
    }

    @Override
    public String toString() {
        return "ScenicSpot{" +
                "id=" + id +
                ", typeId=" + typeId +
                ", areaId=" + areaId +
                ", name='" + name + '\'' +
                ", readme='" + readme + '\'' +
                ", businessStartDate='" + businessStartDate + '\'' +
                ", businessEndDate='" + businessEndDate + '\'' +
                ", price=" + price +
                ", skipUrl='" + skipUrl + '\'' +
                ", searchKeyword='" + searchKeyword + '\'' +
                ", createDate=" + createDate +
                ", isRed='" + isRed + '\'' +
                ", idIndex='" + isIndex + '\'' +
                ", headImg='" + headImg + '\'' +
                ", rate='" + rate + '\'' +
                ", cultural='" + cultural + '\'' +
                ", lat='" + lat + '\'' +
                ", lng='" + lng + '\'' +

                '}';
    }
}
